{{useCss "/app-pages/css/classify.scss"}}
<div class="classify">
	{{#if $Cache.classify.tree.childs.length}}
	<div class="main_classify">
		<div class="box">
		{{#each $Cache.classify.tree.childs}}
			<div class="item {{($Top.$Cache.classify.pointer_classify.classify._id==classify._id)&&'focus'}}" event-click="{{'$Top.$Event.classify.change_pointer_classify'}}">{{classify.classify_name}}</div>
		{{/each}}
		</div>
	</div>
	<div class="second_classify">
		{{#if $Cache.classify.pointer_classify.childs.length}}
		{{#each $Cache.classify.pointer_classify.childs}}
		<href class="item" to="/classify_goods_list.html?id={{classify._id}}">
			<div class="icon">
				<img bind-src="{{classify.icon_url||'/images/jewel/default_classify_icon.jpg'}}?imageView/1/h/130" />
			</div>
			<div class="name">{{classify.classify_name}}</div>
		</href>
		{{/each}}
		{{#else}}
		<br />
		<p>此分类下没有东西</p>
		{{/if}}
	</div>
	{{#else}}
		<br/>
		<p>暂时没有设置分类</p>
	{{/if}}
</div>